package puyu.manage.service.file.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

/**
 * 文件表
 * @author makejava
 * @since 2024-06-07 15:12:51
 */
@Data
@ApiModel(description = "文件表")
public class SysTFileUpload{
    private static final long serialVersionUID = 851103318906404517L;

    @ApiModelProperty("文件ID")
    @TableId(type = IdType.ASSIGN_UUID)
    private String fileId;

    @ApiModelProperty("文件全称")
    private String fullName;

    @ApiModelProperty("文件名称")
    private String fileName;

    @ApiModelProperty("文件大小")
    private Long fileSize;

    @ApiModelProperty("文件后缀")
    private String fileSuffix;

    @ApiModelProperty("文件路径")
    private String fileUrl;

    @ApiModelProperty("状态")
    @TableField(fill = FieldFill.INSERT)
    private String status;

    @ApiModelProperty("删除状态")
    @TableField(fill = FieldFill.INSERT)
    private String isDel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    public Date createTime;

    @ApiModelProperty("创建人用户名")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty("创建人名称")
    @TableField(fill = FieldFill.INSERT)
    private String createName;

}

